<template>
	<view class="content">
		<image class="logo" src="/static/yunzhu1.jpg"></image>
		<view>
			<navigator url="/pages/community/index">
				<button class="navigator-button" type="primary">Community Page</button>
			</navigator>
			<navigator url="/pages/user/index">
				<button class="navigator-button" type="warn">User Page</button>
			</navigator>
			<button class="navigator-button" type="warn" @click="onClear">Clear</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello'
			}
		},
		onLoad() {
			console.log(navigator.userAgent);
		},
		methods: {
			onClear() {
				localStorage.clear();
			}
		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}
	
	.navigator-button {
		margin-top: 60rpx;
	}

	.logo {
		height: 400rpx;
		width: 400rpx;
		margin: 200rpx auto 50rpx auto;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
